package queue;

public class Test {

    public static void main(String[] args) {
        ArrayQueue pArrayQueue = new ArrayQueue();
        for (int i = 1; i < 1; i++) {
            pArrayQueue.enqueue(i);
            pArrayQueue.printAll();
            pArrayQueue.enqueue(i * 2);
            pArrayQueue.printAll();
            pArrayQueue.dequeue();
            pArrayQueue.printAll();
        }

        LinkedQueue pLinkedQueue = new LinkedQueue();
        for (int i = 1; i < 21; i++) {
            pLinkedQueue.enqueue(i);
            pLinkedQueue.printAll();
            pLinkedQueue.enqueue(i * 2);
            pLinkedQueue.printAll();
            pLinkedQueue.dequeue();
            pLinkedQueue.printAll();
        }

    }

}
